/*
 * @(#)ListDmsDocumentForm.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.dms.web;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

import com.dcivision.framework.web.AbstractSearchForm;
import com.dcivision.framework.SystemParameterFactory;
import com.dcivision.framework.SystemParameterConstant;

/**
  ListDmsDocumentAction.java
  The ActionForm for ListDmsDocumentAction
    @author          Zoe Shum
    @company         DCIVision Limited
    @creation date   08/07/2003
    @version         $Revision: 1.75.2.9 $
 */

public class ListDmsDocumentForm extends AbstractSearchForm implements com.dcivision.framework.web.WorkflowActionFormInterface {

  public static final String REVISION = "$Revision: 1.75.2.9 $";

  /** Default display document type */
  public static String DEFAULT_DISPLAY_DOC_TYPE = "DCZEL";
  
  //add paper document display options into default display options
  //HC - THIS IS UNSAFE since it requires SystemParameterFactory hashtable be loaded completely first.
  static{
    if(SystemParameterFactory.getSystemParameterBoolean(SystemParameterConstant.DMS_ENABLE_PAPER_DOCUMENT)){     
      DEFAULT_DISPLAY_DOC_TYPE = DEFAULT_DISPLAY_DOC_TYPE + "H";
    }
  }
 
  private String parentID = null;
  private String rootID = null;
  private String checkoutID = null;
  private String displayOption = DEFAULT_DISPLAY_DOC_TYPE;
  private String defaultSearchOption = "AND";

  /** search criteria */
  private String keyword = null;
  private String keywordOption = null;
  private boolean keywordExactMatch = false;

  private String documentName = null;
  private String documentNameOption = defaultSearchOption;
  private boolean documentNameExactMatch = false;
  
  private boolean priorityExactMatch = false;

  private String referenceNo = null;
  private String referenceNoOption = defaultSearchOption;
  private boolean referenceNoExactMatch = false;

  private String description = null;
  private String descriptionOption = defaultSearchOption;
  private boolean descriptionExactMatch = false;

  private String newDescription = null;
  private String newUserDefinedID = null;

  private String effectiveStartDate = null;
  private String effectiveEndDate = null;
  private String effectiveDateOption = defaultSearchOption;

  private String priority = null;
  private String priorityOption = defaultSearchOption;  
  private String[] searchPriority = null;

  private String createDate = null;
  private String createToDate = null;
  private String updateDate = null;
  private String updateToDate = null;
  private String createDateOption = defaultSearchOption;
  private String updateDateOption = defaultSearchOption;

  private String ignoreDuplicateShortcut = defaultSearchOption;  
  private boolean ignoreDeleteShortcut = false;


  private String userDef1 = null;
  private String userDef2 = null;
  private String userDef3 = null;
  private String userDef4 = null;
  private String userDef5 = null;
  private String userDef6 = null;
  private String userDef7 = null;
  private String userDef8 = null;
  private String userDef9 = null;
  private String userDef10 = null;

  private String userDef1To = null;
  private String userDef2To = null;
  private String userDef3To = null;
  private String userDef4To = null;
  private String userDef5To = null;
  private String userDef6To = null;
  private String userDef7To = null;
  private String userDef8To = null;
  private String userDef9To = null;
  private String userDef10To = null;

  private String userDef1DataType = null;
  private String userDef2DataType = null;
  private String userDef3DataType = null;
  private String userDef4DataType = null;
  private String userDef5DataType = null;
  private String userDef6DataType = null;
  private String userDef7DataType = null;
  private String userDef8DataType = null;
  private String userDef9DataType = null;
  private String userDef10DataType = null;


  private String userDef1Option = defaultSearchOption;
  private String userDef2Option = defaultSearchOption;
  private String userDef3Option = defaultSearchOption;
  private String userDef4Option = defaultSearchOption;
  private String userDef5Option = defaultSearchOption;
  private String userDef6Option = defaultSearchOption;
  private String userDef7Option = defaultSearchOption;
  private String userDef8Option = defaultSearchOption;
  private String userDef9Option = defaultSearchOption;
  private String userDef10Option = defaultSearchOption;
  private boolean userDef1ExactMatch = false;
  private boolean userDef2ExactMatch = false;
  private boolean userDef3ExactMatch = false;
  private boolean userDef4ExactMatch = false;
  private boolean userDef5ExactMatch = false;
  private boolean userDef6ExactMatch = false;
  private boolean userDef7ExactMatch = false;
  private boolean userDef8ExactMatch = false;
  private boolean userDef9ExactMatch = false;
  private boolean userDef10ExactMatch = false;

  private String userDefinedFieldID = null;
  private String userDefinedFieldOption = defaultSearchOption;
  
  private String documentType = null;
  private String documentTypeOption = defaultSearchOption;
  
  /** used for tmp UDF Detail */
  private String tmpUDFOption = defaultSearchOption;
  private boolean tmpUDFExactMatch = false;

  private List documentDetails = null;
  private String docDetailsSize = null;
  private List udfDetailList = null;

  private String curFunctionCode = null;
  /** Holds value of property target search folder. */
  private String[] searchFolder = null;
  private String advSearchOpt = null;

  /* added to get all result for search export */
  private String searchResultOpt = null;

  /* added for bulk search option */
  private FormFile uploadFile = null;
  private String bulkSearchCriteriaFile = null;
  private String bulkSearchExportUserDefinedFieldID = null;

  /** Holds value of property for tiff array. */
  private String[] tiffArray = null;

  /** Holds value of property for tiff array. */
  private String outerCriteria = null;
  private String[] OuterCriteriaValue = null;
  private String prvOpMode = null;

  /**Hold the true file name for bulk search file upload*/
  private String trueFileName = null;
  
  /**Hold value of previous page visited from*/
  private String fromFolder = null;
  private String destinationPath=null;

  /**Hold value for clipboard*/
  private boolean cleanClipboard = false;
  private String copyFileOpt=null;
  
  /** hold the status of the Loading page*/
  private String closeFlag = null;
  
  
  /** Workflow Routine Fields */
  private String fileNames = null;
  private String dmsFileNames = null;
  private String submitSystemWorkflow = null;
  private String sysWorkflowCategoryID = null;
  private String workflowRecordID = null;
  private String workflowComment = null;
  private String nextStepDueDates = null;
  private String nextStepAllowAssignDueDate = null;
  private String trackID = null;
  
  private String[] searchUDF = null;
  private String searchKeyUDF=null;
  
  /** Recycle Bin Root ID List */
  private String rootIDAry = null;
  
  /** keyword search */
  private boolean sortByScore=false;
  
  private String directURL=null;
  
  private String deleteSelectID=null;
  
  private String curPageNO;
  private String lastPageNO;
  private String pageAmount;
  private String cursor;
  
  private String creatorID;
  private String creatorOption = defaultSearchOption;
  private boolean creatorExactMatch = false;
  
  private String searchPage;
  
  private String searchOption = defaultSearchOption;
  
  private boolean isGlobalSearch = true;
  
  public boolean isGlobalSearch() {
    return isGlobalSearch;
  }

  public void setGlobalSearch(boolean isGlobalSearch) {
    this.isGlobalSearch = isGlobalSearch;
  }

  public String getSearchPage() {
    return searchPage;
  }

  public void setSearchPage(String searchPage) {
    this.searchPage = searchPage;
  }

  public String getCurPageNO() {
		return curPageNO;
	}

	public void setCurPageNO(String curPageNO) {
		this.curPageNO = curPageNO;
	}

	public ListDmsDocumentForm() {
    super();
    this.setSortAttribute("DOCUMENT_NAME");
    this.setSortOrder("ASC");    
    this.addSearchableAttribute("displayOption");

  }

  public String getParentID() {
    return (this.parentID);
  }

  public void setParentID(String parentID) {
    this.parentID = parentID;
  }

  public String getRootID() {
    return (this.rootID);
  }

  public void setRootID(String rootID) {
    this.rootID = rootID;
  }

  public String getKeyword() {
    return (this.keyword);
  }

  public void setKeyword(String keyword) {
    this.keyword = keyword;
  }

  public String getKeywordOption() {
    return (this.keywordOption);
  }

  public void setKeywordOption(String keywordOption) {
    this.keywordOption = keywordOption;
  }

  public boolean getKeywordExactMatch() {
    return (this.keywordExactMatch);
  }

  public void setKeywordExactMatch(boolean keywordExactMatch) {
    this.keywordExactMatch = keywordExactMatch;
  }

  public void setDocumentName(String documentName) {
    this.documentName = documentName;
  }

  public String getDocumentName() {
    return documentName;
  }

  public void setDocumentNameOption(String documentNameOption) {
    this.documentNameOption = documentNameOption;
  }

  public String getDocumentNameOption() {
    return documentNameOption;
  }

  public void setDocumentNameExactMatch(boolean documentNameExactMatch) {
    this.documentNameExactMatch = documentNameExactMatch;
  }

  public boolean getDocumentNameExactMatch() {
    return this.documentNameExactMatch;
  }
  
  public void setPriorityExactMatch(boolean priorityExactMatch) {
    this.priorityExactMatch = priorityExactMatch;
  }

  public boolean getPriorityExactMatch() {
    return this.priorityExactMatch;
  }
  

  public void setReferenceNo(String referenceNo) {
    this.referenceNo = referenceNo;
  }

  public String getReferenceNo() {
    return referenceNo;
  }

  public void setReferenceNoOption(String referenceNoOption) {
    this.referenceNoOption = referenceNoOption;
  }

  public String getReferenceNoOption() {
    return referenceNoOption;
  }

  public void setReferenceNoExactMatch(boolean referenceNoExactMatch) {
    this.referenceNoExactMatch = referenceNoExactMatch;
  }

  public boolean getReferenceNoExactMatch() {
    return this.referenceNoExactMatch;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getDescription() {
    return description;
  }

  public void setDescriptionOption(String descriptionOption) {
    this.descriptionOption = descriptionOption;
  }

  public String getDescriptionOption() {
    return descriptionOption;
  }

  public void setDescriptionExactMatch(boolean descriptionExactMatch) {
    this.descriptionExactMatch = descriptionExactMatch;
  }

  public boolean getDescriptionExactMatch() {
    return descriptionExactMatch;
  }

  public void setNewDescription(String description) {
    this.newDescription = description;
  }

  public String getNewDescription() {
    return newDescription;
  }

  public void setNewUserDefinedID(String userDefinedID) {
    this.newUserDefinedID = userDefinedID;
  }

  public String getNewUserDefinedID() {
    return newUserDefinedID;
  }

  public String getEffectiveStartDate() {
    return (this.effectiveStartDate);
  }

  public void setEffectiveStartDate(String effectiveStartDate) {
    this.effectiveStartDate = effectiveStartDate;
  }

  public String getEffectiveEndDate() {
    return (this.effectiveEndDate);
  }

  public void setEffectiveEndDate(String effectiveEndDate) {
    this.effectiveEndDate = effectiveEndDate;
  }

  public void setEffectiveDateOption(String effectiveDateOption) {
    this.effectiveDateOption = effectiveDateOption;
  }

  public String getEffectiveDateOption() {
    return this.effectiveDateOption;
  }

  public String getPriority() {
    return (this.priority);
  }

  public void setPriority(String priority) {
    this.priority = priority;
  }
  
  public void setSearchPriority(String[] searchPriority) {
    this.searchPriority = searchPriority;
  }

  public String[] getSearchPriority() {
    return searchPriority;
  }

  public String getPriorityOption() {
    return (this.priorityOption);
  }

  public void setPriorityOption(String priorityOption) {
    this.priorityOption = priorityOption;
  }

  public String getUserDef1() {
    return (this.userDef1);
  }

  public void setUserDef1(String userDef1) {
    this.userDef1 = userDef1;
  }

  public String getUserDef2() {
    return (this.userDef2);
  }

  public void setUserDef2(String userDef2) {
    this.userDef2 = userDef2;
  }

  public String getUserDef3() {
    return (this.userDef3);
  }

  public void setUserDef3(String userDef3) {
    this.userDef3 = userDef3;
  }

  public String getUserDef4() {
    return (this.userDef4);
  }

  public void setUserDef4(String userDef4) {
    this.userDef4 = userDef4;
  }

  public String getUserDef5() {
    return (this.userDef5);
  }

  public void setUserDef5(String userDef5) {
    this.userDef5 = userDef5;
  }

  public String getUserDef6() {
    return (this.userDef6);
  }

  public void setUserDef6(String userDef6) {
    this.userDef6 = userDef6;
  }

  public String getUserDef7() {
    return (this.userDef7);
  }

  public void setUserDef7(String userDef7) {
    this.userDef7 = userDef7;
  }

  public String getUserDef8() {
    return (this.userDef8);
  }

  public void setUserDef8(String userDef8) {
    this.userDef8 = userDef8;
  }

  public String getUserDef9() {
    return (this.userDef9);
  }

  public void setUserDef9(String userDef9) {
    this.userDef9 = userDef9;
  }

  public String getUserDef10() {
    return (this.userDef10);
  }

  public void setUserDef10(String userDef10) {
    this.userDef10 = userDef10;
  }

  public String getUserDef1Option() {
    return (this.userDef1Option);
  }

  public void setUserDef1Option(String userDef1Option) {
    this.userDef1Option = userDef1Option;
  }

  public String getUserDef2Option() {
    return (this.userDef2Option);
  }

  public void setUserDef2Option(String userDef2Option) {
    this.userDef2Option = userDef2Option;
  }

  public String getUserDef3Option() {
    return (this.userDef3Option);
  }

  public void setUserDef3Option(String userDef3Option) {
    this.userDef3Option = userDef3Option;
  }

  public String getUserDef4Option() {
    return (this.userDef4Option);
  }

  public void setUserDef4Option(String userDef4Option) {
    this.userDef4Option = userDef4Option;
  }

  public String getUserDef5Option() {
    return (this.userDef5Option);
  }

  public void setUserDef5Option(String userDef5Option) {
    this.userDef5Option = userDef5Option;
  }

  public String getUserDef6Option() {
    return (this.userDef6Option);
  }

  public void setUserDef6Option(String userDef6Option) {
    this.userDef6Option = userDef6Option;
  }

  public String getUserDef7Option() {
    return (this.userDef7Option);
  }

  public void setUserDef7Option(String userDef7Option) {
    this.userDef7Option = userDef7Option;
  }

  public String getUserDef8Option() {
    return (this.userDef8Option);
  }

  public void setUserDef8Option(String userDef8Option) {
    this.userDef8Option = userDef8Option;
  }

  public String getUserDef9Option() {
    return (this.userDef9Option);
  }

  public void setUserDef9Option(String userDef9Option) {
    this.userDef9Option = userDef9Option;
  }

  public String getUserDef10Option() {
    return (this.userDef10Option);
  }

  public void setUserDef10Option(String userDef10Option) {
    this.userDef10Option = userDef10Option;
  }

  public boolean getUserDef1ExactMatch() {
    return (this.userDef1ExactMatch);
  }

  public void setUserDef1ExactMatch(boolean userDef1ExactMatch) {
    this.userDef1ExactMatch = userDef1ExactMatch;
  }

  public boolean getUserDef2ExactMatch() {
    return (this.userDef2ExactMatch);
  }

  public void setUserDef2ExactMatch(boolean userDef2ExactMatch) {
    this.userDef2ExactMatch = userDef2ExactMatch;
  }

  public boolean getUserDef3ExactMatch() {
    return (this.userDef3ExactMatch);
  }

  public void setUserDef3ExactMatch(boolean userDef3ExactMatch) {
    this.userDef3ExactMatch = userDef3ExactMatch;
  }

  public boolean getUserDef4ExactMatch() {
    return (this.userDef4ExactMatch);
  }

  public void setUserDef4ExactMatch(boolean userDef4ExactMatch) {
    this.userDef4ExactMatch = userDef4ExactMatch;
  }

  public boolean getUserDef5ExactMatch() {
    return (this.userDef5ExactMatch);
  }

  public void setUserDef5ExactMatch(boolean userDef5ExactMatch) {
    this.userDef5ExactMatch = userDef5ExactMatch;
  }

  public boolean getUserDef6ExactMatch() {
    return (this.userDef6ExactMatch);
  }

  public void setUserDef6ExactMatch(boolean userDef6ExactMatch) {
    this.userDef6ExactMatch = userDef6ExactMatch;
  }

  public boolean getUserDef7ExactMatch() {
    return (this.userDef7ExactMatch);
  }

  public void setUserDef7ExactMatch(boolean userDef7ExactMatch) {
    this.userDef7ExactMatch = userDef7ExactMatch;
  }

  public boolean getUserDef8ExactMatch() {
    return (this.userDef8ExactMatch);
  }

  public void setUserDef8ExactMatch(boolean userDef8ExactMatch) {
    this.userDef8ExactMatch = userDef8ExactMatch;
  }

  public boolean getUserDef9ExactMatch() {
    return (this.userDef9ExactMatch);
  }

  public void setUserDef9ExactMatch(boolean userDef9ExactMatch) {
    this.userDef9ExactMatch = userDef9ExactMatch;
  }

  public boolean getUserDef10ExactMatch() {
    return (this.userDef10ExactMatch);
  }

  public String getUserDef1To() {
    return (this.userDef1To);
  }

  public void setUserDef1To(String userDef1To) {
    this.userDef1To = userDef1To;
  }

  public String getUserDef2To() {
    return (this.userDef2To);
  }

  public void setUserDef2To(String userDef2To) {
    this.userDef2To = userDef2To;
  }

  public String getUserDef3To() {
    return (this.userDef3To);
  }

  public void setUserDef3To(String userDef3To) {
    this.userDef3To = userDef3To;
  }

  public String getUserDef4To() {
    return (this.userDef4To);
  }

  public void setUserDef4To(String userDef4To) {
    this.userDef4To = userDef4To;
  }

  public String getUserDef5To() {
    return (this.userDef5To);
  }

  public void setUserDef5To(String userDef5To) {
    this.userDef5To = userDef5To;
  }

  public String getUserDef6To() {
    return (this.userDef6To);
  }

  public void setUserDef6To(String userDef6To) {
    this.userDef6To = userDef6To;
  }

  public String getUserDef7To() {
    return (this.userDef7To);
  }

  public void setUserDef7To(String userDef7To) {
    this.userDef7To = userDef7To;
  }

  public String getUserDef8To() {
    return (this.userDef8To);
  }

  public void setUserDef8To(String userDef8To) {
    this.userDef8To = userDef8To;
  }

  public String getUserDef9To() {
    return (this.userDef9To);
  }

  public void setUserDef9To(String userDef9To) {
    this.userDef9To = userDef9To;
  }

  public String getUserDef10To() {
    return (this.userDef10To);
  }

  public void setUserDef10To(String userDef10To) {
    this.userDef10To = userDef10To;
  }

  public String getUserDef1DataType() {
    return (this.userDef1DataType);
  }

  public void setUserDef1DataType(String userDef1DataType) {
    this.userDef1DataType = userDef1DataType;
  }

  public String getUserDef2DataType() {
    return (this.userDef2DataType);
  }

  public void setUserDef2DataType(String userDef2DataType) {
    this.userDef2DataType = userDef2DataType;
  }

  public String getUserDef3DataType() {
    return (this.userDef3DataType);
  }

  public void setUserDef3DataType(String userDef3DataType) {
    this.userDef3DataType = userDef3DataType;
  }

  public String getUserDef4DataType() {
    return (this.userDef4DataType);
  }

  public void setUserDef4DataType(String userDef4DataType) {
    this.userDef4DataType = userDef4DataType;
  }

  public String getUserDef5DataType() {
    return (this.userDef5DataType);
  }

  public void setUserDef5DataType(String userDef5DataType) {
    this.userDef5DataType = userDef5DataType;
  }

  public String getUserDef6DataType() {
    return (this.userDef6DataType);
  }

  public void setUserDef6DataType(String userDef6DataType) {
    this.userDef6DataType = userDef6DataType;
  }

  public String getUserDef7DataType() {
    return (this.userDef7DataType);
  }

  public void setUserDef7DataType(String userDef7DataType) {
    this.userDef7DataType = userDef7DataType;
  }

  public String getUserDef8DataType() {
    return (this.userDef8DataType);
  }

  public void setUserDef8DataType(String userDef8DataType) {
    this.userDef8DataType = userDef8DataType;
  }

  public String getUserDef9DataType() {
    return (this.userDef9DataType);
  }

  public void setUserDef9DataType(String userDef9DataType) {
    this.userDef9DataType = userDef9DataType;
  }

  public String getUserDef10DataType() {
    return (this.userDef10DataType);
  }

  public void setUserDef10DataType(String userDef10DataType) {
    this.userDef10DataType = userDef10DataType;
  }


  public void setUserDef10ExactMatch(boolean userDef10ExactMatch) {
    this.userDef10ExactMatch = userDef10ExactMatch;
  }

  //search user defined field
  public void setUserDefinedFieldID(String userDefinedFieldID) {
    this.userDefinedFieldID = userDefinedFieldID;
  }

  public String getUserDefinedFieldID() {
    return userDefinedFieldID;
  }

  public void setUserDefinedFieldOption(String userDefinedFieldOption) {
    this.userDefinedFieldOption = userDefinedFieldOption;
  }

  public String getUserDefinedFieldOption() {
    return this.userDefinedFieldOption;
  }

  public void setDocDetailsSize(String docDetailsSize) {
    this.docDetailsSize = docDetailsSize;
  }

  public String getDocDetailsSize() {
    return docDetailsSize;
  }

  public void setDocumentDetails(List documentDetails) {
    this.documentDetails = documentDetails;
  }

  public List getDocumentDetails() {

    return documentDetails;
  }

  public List getUdfDetailList() {
    return (this.udfDetailList);
  }

  public void setUdfDetailList(List udfDetailList) {
    this.udfDetailList = udfDetailList;
  }

  public void setCurFunctionCode(String curFunctionCode) {
    this.curFunctionCode = curFunctionCode;
  }

  public String getCurFunctionCode() {
    return curFunctionCode;
  }

  public void setSearchFolder(String[] searchFolder) {
    this.searchFolder = searchFolder;
  }

  public String[] getSearchFolder() {
    return searchFolder;
  }

  public String getAdvSearchOpt() {
    return advSearchOpt;
  }

  public void setAdvSearchOpt(String advSearchOpt) {
    this.advSearchOpt = advSearchOpt;
  }

  public String getSearchResultOpt() {
    return this.searchResultOpt;
  }

  public void setSearchResultOpt(String searchResultOpt) {
    this.searchResultOpt = searchResultOpt;
  }

  public void setUploadFile(FormFile uploadFile) {
    this.uploadFile = uploadFile;
  }

  public FormFile getUploadFile() {
//    log.debug("getUploadFile!!!!!!!!!!!!!!!!!!!!!!!!!!!");
    return uploadFile;
  }

  public String getBulkSearchCriteriaFile() {
    return bulkSearchCriteriaFile;
  }

  public void setBulkSearchCriteriaFile(String bulkSearchCriteriaFile) {
    this.bulkSearchCriteriaFile = bulkSearchCriteriaFile;
  }

  public String getBulkSearchExportUserDefinedFieldID() {
    return bulkSearchExportUserDefinedFieldID;
  }

  public void setBulkSearchExportUserDefinedFieldID(String bulkSearchExportUserDefinedFieldID) {
    this.bulkSearchExportUserDefinedFieldID = bulkSearchExportUserDefinedFieldID;
  }
    
    
  

  public void setTiffArray(String[] tiffArray) {
    this.tiffArray = tiffArray;
  }

  public String[] getTiffArray() {
    return tiffArray;
  }

  public String getOuterCriteria() {
    return outerCriteria;
  }

  public void setOuterCriteria(String outerCriteria) {
    this.outerCriteria = outerCriteria;
  }

  public String[] getOuterCriteriaValue() {
    return this.OuterCriteriaValue;
  }

  public void setOuterCriteriaValue(String[] OuterCriteriaValue) {
    this.OuterCriteriaValue = OuterCriteriaValue;
  }

  public String getPrvOpMode() {
    return this.prvOpMode;
  }

  public void setPrvOpMode(String prvOpMode) {
    this.prvOpMode = prvOpMode;
  }

  public void setTrueFileName(String trueFileName) {
    this.trueFileName = trueFileName;
  }

  public String getTrueFileName() {
    return trueFileName;
  }

  public void setFromFolder(String fromFolder) {
    this.fromFolder = fromFolder;
  }

  public String getFromFolder() {
    return fromFolder;
  }

  public void setCreateDate(String createDate){
    this.createDate = createDate;
  }

  public String getCreateDate(){
    return this.createDate;
  }

  public void setUpdateDate(String updateDate){
    this.updateDate = updateDate;
  }

  public String getUpdateDate(){
    return this.updateDate;
  }

  public void setCreateToDate(String createToDate){
    this.createToDate = createToDate;
  }

  public String getCreateToDate(){
    return this.createToDate;
  }

  public void setUpdateToDate(String updateToDate){
    this.updateToDate = updateToDate;
  }

  public String getUpdateToDate(){
    return this.updateToDate;
  }

  public void setCreateDateOption(String createDateOption){
    this.createDateOption = createDateOption;
  }

  public String getCreateDateOption(){
    return this.createDateOption;
  }

  public void setUpdateDateOption(String updateDateOption){
    this.updateDateOption = updateDateOption;
  }

  public String getUpdateDateOption(){
    return this.updateDateOption;
  }

  public void setDisplayOption(String displayOption) {
    this.displayOption = displayOption;
  }

  public String getDisplayOption() {
    return this.displayOption;
  }

  public void setDestinationPath(String destinationPath) {
    this.destinationPath = destinationPath;
  }

  public String getDestinationPath() {
    return destinationPath;
  }

  public boolean getCleanClipboard(){
    return this.cleanClipboard;
  }

  public void setCleanClipboard(boolean cleanClipboard){
    this.cleanClipboard = cleanClipboard;
  }
  
  public String getCopyFileOpt(){
  	return this.copyFileOpt;
  }
  
  public void setCopyFileOpt(String copyFileOpt){
  	this.copyFileOpt=copyFileOpt;
  }

  public String getSubmitSystemWorkflow() {
    return(this.submitSystemWorkflow);
  }

  public void setSubmitSystemWorkflow(String submitSystemWorkflow) {
    this.submitSystemWorkflow = submitSystemWorkflow;
  }
    
  public String getFileNames() {
  	return this.fileNames;
  }
  
  public void setFileNames(String fileNames) {
  	this.fileNames = fileNames;
  }  
  
  public String getDmsFileNames() {
  	return this.dmsFileNames;
  }
  
  public void setDmsFileNames(String dmsFileNames) {
  	this.dmsFileNames = dmsFileNames;
  }    


 public String getSysWorkflowCategoryID() {
    return(this.sysWorkflowCategoryID);
  }

  public void setSysWorkflowCategoryID(String sysWorkflowCategoryID) {
    this.sysWorkflowCategoryID = sysWorkflowCategoryID;
  }

  public String getWorkflowRecordID() {
    return(this.workflowRecordID);
  }

  public void setWorkflowRecordID(String workflowRecordID) {
    this.workflowRecordID = workflowRecordID;
  }

  public String getWorkflowComment() {
    return(this.workflowComment);
  }

  public void setWorkflowComment(String workflowComment) {
    this.workflowComment = workflowComment;
  }  
  
  public String getCloseFlag(){
    return (this.closeFlag);
  }
  
  public void setCloseFlag(String closeFlag){
    this.closeFlag = closeFlag;
  }
  
  public String getRootIDAry(){
    return this.rootIDAry;
  }
  
  public void setRootIDAry(String rootIDAry){
    this.rootIDAry = rootIDAry;
  }  
  
  public boolean getSortByScore(){
    return this.sortByScore;
  }
  
  public void setSortByScore(boolean sortByScore){
    this.sortByScore=sortByScore;
  }
  
  public String getDocumentType() {
    return (this.documentType);
  }

  public void setDocumentType(String documentType) {
    this.documentType = documentType;
  }
  
  public String getDocumentTypeOption(){
    return (this.documentTypeOption);
  }
  
  public void setDocumentTypeOption(String documentTypeOption){
    this.documentTypeOption = documentTypeOption;
  }
  

  public void setIgnoreDuplicateShortcut(String ignoreDuplicateShortcut) {
    this.ignoreDuplicateShortcut = ignoreDuplicateShortcut;
  }

  public String getIgnoreDuplicateShortcut() {
    return ignoreDuplicateShortcut;
  }  
    
  
  
  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    this.setDocumentName(null);
    this.setDocumentNameOption(defaultSearchOption);
    this.setDocumentNameExactMatch(false);
    this.setDescription(null);
    this.setDescriptionOption(defaultSearchOption);
    this.setDescriptionExactMatch(false);
    this.setReferenceNo(null);
    this.setReferenceNoOption(defaultSearchOption);
    this.setReferenceNoExactMatch(false);
    this.setParentID(null);
    this.setRootID(null);
    this.setDisplayOption(DEFAULT_DISPLAY_DOC_TYPE);
    this.setEffectiveStartDate(null);
    this.setEffectiveEndDate(null);
    this.setDocumentType(null);
    this.setCreateDate(null);
    this.setUpdateDate(null);
    this.setCreateToDate(null);
    this.setUpdateToDate(null);
    this.setUploadFile(null);
    this.setIgnoreDuplicateShortcut(defaultSearchOption);
    if (this.getUserDefinedFieldID() == null) {
      this.setUserDefinedFieldID(null);
      this.setDocumentDetails(null);
      this.setUdfDetailList(null);
    }
    this.setUserDef1(null);
    this.setUserDef2(null);
    this.setUserDef3(null);
    this.setUserDef4(null);
    this.setUserDef5(null);
    this.setUserDef6(null);
    this.setUserDef7(null);
    this.setUserDef8(null);
    this.setUserDef9(null);
    this.setUserDef10(null);
    this.setUserDef1Option(defaultSearchOption);
    this.setUserDef2Option(defaultSearchOption);
    this.setUserDef3Option(defaultSearchOption);
    this.setUserDef4Option(defaultSearchOption);
    this.setUserDef5Option(defaultSearchOption);
    this.setUserDef6Option(defaultSearchOption);
    this.setUserDef7Option(defaultSearchOption);
    this.setUserDef8Option(defaultSearchOption);
    this.setUserDef9Option(defaultSearchOption);
    this.setUserDef10Option(defaultSearchOption);
    this.setUserDef1ExactMatch(false);
    this.setUserDef2ExactMatch(false);
    this.setUserDef3ExactMatch(false);
    this.setUserDef4ExactMatch(false);
    this.setUserDef5ExactMatch(false);
    this.setUserDef6ExactMatch(false);
    this.setUserDef7ExactMatch(false);
    this.setUserDef8ExactMatch(false);
    this.setUserDef9ExactMatch(false);
    this.setUserDef10ExactMatch(false);
    this.setNextStepDueDates(null);
  }

  public String getNextStepDueDates(){
    return this.nextStepDueDates;  
  }
  
  public void setNextStepDueDates(String nextStepDueDates) {
    this.nextStepDueDates = nextStepDueDates; 
  }

  public String getDirectURL(){
    return this.directURL;
  }
  
  public void setDirectURL(String directURL){
    this.directURL=directURL; 
  }
  
  public String getNextStepAllowAssignDueDate(){
    return this.nextStepAllowAssignDueDate;  
  }
  
  public void setNextStepAllowAssignDueDate(String nextStepAllowAssignDueDate){
    this.nextStepAllowAssignDueDate = nextStepAllowAssignDueDate;  
  }
    
  public String getTrackID() {
  	return trackID;
  }
  
  public void setTrackID(String trackID) {
  	this.trackID = trackID;
  }

  public String[] getSearchUDF() {
	  return searchUDF;
  }

  public void setSearchUDF(String[] searchUDF) {
	  this.searchUDF = searchUDF;
  }
  
  public String getSearchKeyUDF() {
    return searchKeyUDF;
  }

  public void setSearchKeyUDF(String searchKeyUDF) {
    this.searchKeyUDF = searchKeyUDF;
  }
  
  public String getDeleteSelectID() {
    return this.deleteSelectID;
  }

  public void setDeleteSelectID(String deleteSelectID) {
    this.deleteSelectID = deleteSelectID;
  }

  public String getLastPageNO() {
	return lastPageNO;
  }

  public void setLastPageNO(String lastPageNO) {
    this.lastPageNO = lastPageNO;
  }
  
  public String getCreatorOption(){
    return this.creatorOption;
  }
  
  public void setCreatorOption(String creatorOption){
    this.creatorOption = creatorOption;
  }
  
  public boolean getCreatorExactMatch(){
    return this.creatorExactMatch;
  }
  
  public void setCreatorExactMatch(boolean creatorExactMatch){
    this.creatorExactMatch = creatorExactMatch;
  }
  
  public String getCreatorID(){
    return this.creatorID;
  }
  
  public void setCreatorID(String creatorID){
    this.creatorID = creatorID;
  }

	public String getCursor() {
		return cursor;
	}

	public void setCursor(String cursor) {
		this.cursor = cursor;
	}

	public String getPageAmount() {
		return pageAmount;
	}

	public void setPageAmount(String pageAmount) {
		this.pageAmount = pageAmount;
	}

  public boolean isIgnoreDeleteShortcut() {
    return ignoreDeleteShortcut;
  }

  public void setIgnoreDeleteShortcut(boolean ignoreDeleteShortcut) {
    this.ignoreDeleteShortcut = ignoreDeleteShortcut;
  }

  public String getSearchOption() {
    return searchOption;
  }

  public void setSearchOption(String searchOption) {
    searchOption = searchOption;
    setCreateDateOption(searchOption);
    setCreatorOption(searchOption);
    setDocumentTypeOption(searchOption);
    setEffectiveDateOption(searchOption);
    setPriorityOption(searchOption);
    setUpdateDateOption(searchOption);
    setDocumentNameOption(searchOption);
    setDescriptionOption(searchOption);
    setReferenceNoOption(searchOption);
    setUserDef1Option(searchOption);
    setUserDef2Option(searchOption);
    setUserDef3Option(searchOption);
    setUserDef4Option(searchOption);
    setUserDef5Option(searchOption);
    setUserDef6Option(searchOption);
    setUserDef7Option(searchOption);
    setUserDef8Option(searchOption);
    setUserDef9Option(searchOption);
    setUserDef10Option(searchOption);
    setUserDefinedFieldOption(searchOption);
  }
  
}
